package com.xt.tea.entity.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;


@Data
@TableName("user")
@EqualsAndHashCode(callSuper = true)
public class User extends AbstractDomain{

    @TableField("account")
    private String account;

    @TableField("user_name")
    private String userName;

    @TableField("password")
    private String password;

    @TableField("phone")
    private String phone;
    @TableField("user_type")
    private int userType;

    @TableField("sex")
    private Boolean sex;

    @TableField("birthday")
    private Date birthday;


    public User() {
    }

    public User(Integer id){
        this.setId(id);
    }


}
